package org.bocs.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.bocs.entity.ShoppingCart;
import org.bocs.entity.ShoppingCartVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShoppingCartDao extends BaseMapper<ShoppingCart> {
//
    public List<ShoppingCartVO> selectShopCartByUserId(int userId);

    public int updateCartNumByCartId(@Param("cartId") int cartId, @Param("cartNum") int cartNum);

    public List<ShoppingCartVO> selectShopCartByCid(List<Integer> cListId);

    public List<ShoppingCart> selectAllShopCart();

}
